package org.tea.application.configuration;

import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.JedisPool;

/**
 * @author lxh
 */
@Configuration
public class RedisConfiguration {

//    @Bean
    public JedisPool jedisPool(RedisProperties properties) {
        return new JedisPool(properties.getUrl(), properties.getPort());
    }
}
